/*
 * Computer.h
 *
 *  Created on: Apr 3, 2012
 *      Author: victor
 */

#ifndef COMPUTER_H_
#define COMPUTER_H_

#include "conc/Thread.h"
#include "IOCard.h"
#include <iostream>

class Computer : public Thread {
	IOCard* ioCard1;
	IOCard* ioCard2;
	IOCard* ioCard3;
	byte* panoramaImage;
	bool hasImage;
	int imagesReceived; // image is complete if it has 9 images

public:
	Computer(IOCard*, IOCard*, IOCard*);
	virtual ~Computer();

	bool hasPanoramaImage();
	byte* getPanoramaImage();

	void run();
	void readFromIOCard(IOCard*);

};


#endif /* COMPUTER_H_ */
